PCA Index Dashboard Examples

PCA Index Dashboard Examples#

This script was last run at 2024-03-27 10:11:40.243070+00:00 (UTC)
In US/Central Time, this is 2024-03-27 05:11:40.243070-05:00
## Visualize Principal Component 1
pc1, loadings = pca_index.pca(dfn, module="scikitlearn")
pc1.plot();
../_images/c36c7ca0ff9e8b5af228befd8b0a011c349b24367168726fd18a5ccda936ea09.png
# Simple version
fig = px.line(pc1)
fig.show()
vix = df.loc[:,['VIX']]
vix.plot()
<Axes: xlabel='DATE'>
../_images/0a8e9350e21868ee45fb50e4ab910129b05ed68f8b6a439f4fbca97f8a9dfaca.png
fig = px.line(vix)
fig.show()
../_images/90fe1ba37319dd8dcaafbeb21c19468699a9449236f9c520f045c8565820b356.png